/* 导出流文件 */
const downloadFile = function(data) {
  if (!data) {
    return;
  }
  let url = window.URL.createObjectURL(new Blob([data]));
  let link = document.createElement('a');
  link.style.display = 'none';
  link.href = url;
  link.setAttribute('download', 'excel1111.xlsx');
  document.body.appendChild(link);
  link.click();
};

export default downloadFile;
